package www.woniuxy.com.class112.entity;

import java.math.BigDecimal;
import java.util.Date;

public class AgriculturalMarket {
    private Long productId;

    private String productName;

    private String location;

    private BigDecimal price;

    private Date date;

    private Long stateId;

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Long getStateId() {
        return stateId;
    }

    public void setStateId(Long stateId) {
        this.stateId = stateId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", productId=").append(productId);
        sb.append(", productName=").append(productName);
        sb.append(", location=").append(location);
        sb.append(", price=").append(price);
        sb.append(", date=").append(date);
        sb.append(", stateId=").append(stateId);
        sb.append("]");
        return sb.toString();
    }
}